'use strict';

const timestamps = {
  created_at: new Date(),
  updated_at: new Date(),
};

module.exports = {
  up: async (queryInterface, Sequelize) => {
    /**
     * Add seed commands here.
     *
     * Example:
     * await queryInterface.bulkInsert('People', [{
     *   name: 'John Doe',
     *   isBetaMember: false
     * }], {});
    */

     await queryInterface.bulkInsert('shops', [
        { id: 1, name: 'dianpu1', thumb_url: '1.png', ...timestamps },
        { id: 2, name: 'dianpu2', thumb_url: '2.png', ...timestamps },
        { id: 3, name: 'dianpu3', thumb_url: '3.png', ...timestamps },
        { id: 4, name: 'dianpu4', thumb_url: '4.png', ...timestamps },
      ], 
      {});
  },

  down: async (queryInterface, Sequelize) => {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
     await queryInterface.bulkDelete('shops', null, {});
  }
};
